import request from '@/utils/request'
export const reqDepartmentData = () => request.get('/company/department')
export const reqDeleteDepartmentItem = (id) => request.delete(`/company/department/${id}`)
export const queryDepartment = (id) => request.get(`/company/department/${id}`)
export const reqGetEmployeeSimple = () => request.get('/sys/user/simple')
export const reqAddDepartment = (data) => request.post('/company/department', data)
export const updataDepartment = (data) => {
  return request({
    method: 'put',
    url: `/company/department/${data.id}`,
    data
  })
}

